package com.hua.util;

import java.util.List;

/**
 * ClassName:HuaStringUtils
 * Package:com.hua.util
 * Description:
 *
 * @data: 2022/10/21 17:19
 * @author:ChenJH
 */
public class HuaStringUtils {
    public static <T> String[] stringToChangeType(List <T> waitChangeString){

        String [] returnString = new String[waitChangeString.size()];

        if(waitChangeString.size()>0){
            for (int i = 0; i < waitChangeString.size(); i++) {
                if(i == (waitChangeString.size() -1 )) {
                    break;
                }
                returnString[i] = waitChangeString.get(i)+",";
            }
        }

        return returnString;
    }
}
